/*
 * @Description: 规范性检测任务弹窗
 * @Author: Zzt
 * @Date: 2022-10-10 15:00:28
 * @LastEditTime: 2022-10-17 20:19:39
 */
import DetectionTask from './conponentes/DetectionTask';
import { ArchivesDetectionContextProvider } from './contexts/ArchivesDetectionContext';

interface IInspectionTasksProps {
  visible?: boolean;
  onClose?: any;
  data?: any;
  addStandardizedList?: any;
  editStandardizedList?: any;
  archiveType: any;
}
const InspectionTasks = (props: IInspectionTasksProps) => {
  const { visible, onClose, data, addStandardizedList, editStandardizedList, archiveType } = props;
  return (
    <ArchivesDetectionContextProvider>
      <DetectionTask
        archiveType={archiveType}
        visible={visible}
        onClose={onClose}
        data={data}
        addStandardizedList={addStandardizedList}
        editStandardizedList={editStandardizedList}
      />
    </ArchivesDetectionContextProvider>
  );
};
export default InspectionTasks;
